tests: Fix use of C99 inline declaration
authorPhilip Withnall <withnall@endlessm.com>
Tue, 7 Mar 2017 09:47:30 +0000 (09:47 +0000)
committerPhilip Withnall <withnall@endlessm.com>
Tue, 7 Mar 2017 09:47:30 +0000 (09:47 +0000)
We don’t claim to use them yet, even if we perhaps should.

tests/testheightforwidth.c

index 807aecd8626fb41b0f7e323ac17b8a237c137c79..7a0d4138eacd3f6129bc9f8bc8eaae6b177a3089 100644 (file)
@@ -986,7 +986,9 @@ create_window (void)
 static gboolean
 main_window_delete_cb (GtkWidget *widget, GdkEvent *event, gpointer user_data)
 {
-  for (gsize i = 0; i < G_N_ELEMENTS (interfaces); ++i)
+  gsize i;
+
+  for (i = 0; i < G_N_ELEMENTS (interfaces); ++i)
     {
       if (interfaces[i].window)
         gtk_widget_destroy (interfaces[i].window);